<?php /* Smarty version 2.6.14, created on 2015-01-14 18:23:41
         compiled from push.add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'push.add.html', 11, false),array('function', 'html_checkboxes', 'push.add.html', 111, false),array('modifier', 'date_format', 'push.add.html', 41, false),array('modifier', 'cat', 'push.add.html', 111, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table class="adminform" border="0" cellspacing="0">
	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['game']; ?>
</th>
    </tr>
    <tr>
    	<td>
    		<select name="data[game_id]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['chooseGameRequeire']; ?>
" >
                <option value='0'><?php echo $this->_tpl_vars['systemLang']['platform']; ?>
</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['games'],'selected' => $this->_tpl_vars['record']['game_id']), $this);?>

            </select>
        </td>
    </tr>
 	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['type']; ?>
</th>
    </tr>   
    <tr>
    	<td>
    		<select name="data[type]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['typeRequire']; ?>
" >
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['pushConfigs']['type'],'selected' => $this->_tpl_vars['record']['type']), $this);?>

            </select>
        </td>
    </tr>
    <tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['chooosePlatform']; ?>
</th>
    </tr>
    <tr>
    	<td>
    		<select name="data[platform]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['chooosePlatform']; ?>
" >
                <option value=''><?php echo $this->_tpl_vars['systemLang']['chooosePlatform']; ?>
</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['platform'],'selected' => $this->_tpl_vars['record']['platform']), $this);?>

            </select>
        </td>
    </tr>
 	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['startTime']; ?>
</th>
    </tr>   
    <tr>
    	<td>
    		<input onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" class="Wdate" name="data[start_time]" type="text" value="<?php if ($this->_tpl_vars['record']['start_time']):  echo ((is_array($_tmp=$this->_tpl_vars['record']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d"));  endif; ?>" />
        </td>
    </tr>     
 	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['endTime']; ?>
</th>
    </tr>   
    <tr>
    	<td>
    		<input onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" class="Wdate" name="data[end_time]" type="text" value="<?php if ($this->_tpl_vars['record']['end_time']):  echo ((is_array($_tmp=$this->_tpl_vars['record']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d"));  endif; ?>" />
        </td>
    </tr> 
 	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['startTimePoit']; ?>
</th>
    </tr>   
    <tr>
    	<td>
    		<input onClick="WdatePicker({skin:'whyGreen',dateFmt:'H:mm'})" class="Wdate" id="push_end_time" name="data[point_time]" type="text" value="<?php if ($this->_tpl_vars['record']['point_time']):  echo ((is_array($_tmp=$this->_tpl_vars['record']['point_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%H:%M") : smarty_modifier_date_format($_tmp, "%H:%M"));  endif; ?>" />
        </td>
    </tr>         
	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['pushContent']; ?>
</th>
    </tr>
    <tr>
    	<td>
    	<?php echo $this->_tpl_vars['systemLang']['cnContent']; ?>
<br /><textarea name="data[content]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['cnContentRequire']; ?>
" /><?php echo $this->_tpl_vars['record']['content']; ?>
</textarea><br />
    	<?php echo $this->_tpl_vars['systemLang']['enContent']; ?>
<br /><textarea name="data[content_en]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['enContentRequire']; ?>
" /><?php echo $this->_tpl_vars['record']['content_en']; ?>
</textarea><br />
    	<?php echo $this->_tpl_vars['systemLang']['jpContent']; ?>
<br /><textarea name="data[content_jp]" /><?php echo $this->_tpl_vars['record']['content_jp']; ?>
</textarea><br />
    	<?php echo $this->_tpl_vars['systemLang']['krContent']; ?>
<br /><textarea name="data[content_ko]" /><?php echo $this->_tpl_vars['record']['content_ko']; ?>
</textarea><br />
    	<?php echo $this->_tpl_vars['systemLang']['twContent']; ?>
<br /><textarea name="data[content_tw]" /><?php echo $this->_tpl_vars['record']['content_tw']; ?>
</textarea><br />
    	</td>
    </tr>
	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['pushUrl']; ?>
</th>
    </tr>
    <tr>
    	<td>
    		<?php echo $this->_tpl_vars['systemLang']['cnUrl']; ?>
<br/><input type="text" name="data[push_url]" value="<?php echo $this->_tpl_vars['record']['push_url']; ?>
" class="text" /><br />
    		<?php echo $this->_tpl_vars['systemLang']['enUrl']; ?>
<br/><input type="text" name="data[push_url_en]" value="<?php echo $this->_tpl_vars['record']['push_url_en']; ?>
" class="text" /><br />
    		<?php echo $this->_tpl_vars['systemLang']['jpUrl']; ?>
<br/><input type="text" name="data[push_url_jp]" value="<?php echo $this->_tpl_vars['record']['push_url_jp']; ?>
" class="text" /><br />
    		<?php echo $this->_tpl_vars['systemLang']['krUrl']; ?>
<br/><input type="text" name="data[push_url_ko]" value="<?php echo $this->_tpl_vars['record']['push_url_ko']; ?>
" class="text" /><br />
    		<?php echo $this->_tpl_vars['systemLang']['twUrl']; ?>
<br/><input type="text" name="data[push_url_tw]" value="<?php echo $this->_tpl_vars['record']['push_url_tw']; ?>
" class="text" /><br />
    	</td>
    </tr>
  	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['pushCycle']; ?>
</th>
    </tr>   
    <tr>
    	<td>
    		<select name="data[push_cycle]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['typeRequire']; ?>
" >
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['pushConfigs']['cycle'],'selected' => $this->_tpl_vars['record']['push_cycle']), $this);?>

            </select>(d：<?php echo $this->_tpl_vars['systemLang']['day']; ?>
，h：<?php echo $this->_tpl_vars['systemLang']['hour']; ?>
，m：<?php echo $this->_tpl_vars['systemLang']['minute']; ?>
)
        </td>
    </tr>    
  	<tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['userRangeRequire']; ?>
</th>
    </tr>   
    <tr>
    	<td>
    		<select id="user_range" name="data[user_range]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['typeRequire']; ?>
" >
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['pushConfigs']['range'],'selected' => $this->_tpl_vars['record']['user_range']), $this);?>

            </select>
        </td>
    </tr>
    <tr>
    	<th><?php echo $this->_tpl_vars['systemLang']['userDay']; ?>
</th>
    </tr>
    <tr>
    	<td>
	    	<ul class="box_days">
		    	<li>
		    	<?php echo smarty_function_html_checkboxes(array('name' => "data[day_range]",'options' => $this->_tpl_vars['pushConfigs']['days'],'selected' => $this->_tpl_vars['record']['day_range'],'separator' => ((is_array($_tmp=$this->_tpl_vars['systemLang']['day'])) ? $this->_run_mod_handler('cat', true, $_tmp, "</li><li>") : smarty_modifier_cat($_tmp, "</li><li>"))), $this);?>

		    	</li>
	    	</ul>
    	</td>
    </tr>
    <tr>
    	<td><input type="submit" name="sb" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" /></td>
    </tr>
</table>
<?php if ($this->_tpl_vars['record']): ?>
<input type="hidden" name="push_id" value="<?php echo $this->_tpl_vars['record']['push_id']; ?>
" />
<?php endif; ?>
</form>
<style>
.box_days li{float:left; display:line; margin-right:15px; }
</style>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/My97DatePicker/WdatePicker.js"></script>
<script>
$('#user_range').bind('change', function(){
	if($(this).val() == 0){
		$(this).parents('tr').nextAll('tr:lt(2)').hide();
	}else{
		$(this).parents('tr').nextAll('tr:lt(2)').show();
	}
}).trigger('change');
</script>